<script setup></script>
<template>
    <div class="header">
        <span @click="$router.back()" class="back">
            <van-icon name="arrow-left" />
        </span>
        <span>我的钱包</span>

    </div>
    <div class="main">
        <div class="top">
            <span style="font-size: 0.16rem;">可用余额(元)</span>
            <span style="font-size: 0.5rem;">13.14</span>
            <div class="top-btn">
                <span style="color: gray;">转出</span>
                <span style="background-color: #1678ff;">充值</span>
            </div>
        </div>
        <div class="bottom">
            <van-cell title="最新交易明细" value="全部" is-link
                style="border-radius: 0.1rem 0.1rem 0 0;border-bottom: 0.01rem solid gray;" />
            <van-cell v-for="item in 5" :key="item" title="充值-里程兑换" value="+130.13" size="large"
                label="2023-12-12 12:12" />
        </div>
        <div class="question"><a href="#" style="color: blue; ">常见问题</a></div>
    </div>
</template>
<style lang="scss" scoped>
.header {
    height: 0.6rem;
    background-color: #1678ff;
    font-size: 0.2rem;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 0.1rem 0.1rem;
    box-sizing: border-box;
    position: relative;

    .back {
        position: absolute;
        left: 0.1rem;
    }
}

.main {
    height: calc(100% - 0.6rem);
    background-color: rgb(245, 243, 243);
    display: flex;
    flex-direction: column;

    .top {
        font-size: 0.2rem;
        width: 90%;
        height: 30%;
        margin: 0.2rem 5%;
        background-color: white;
        border-radius: 0.2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-top: 0.2rem;
        box-sizing: border-box;

        span {
            text-align: center;
        }

        .top-btn {
            display: flex;

            span {
                color: white;
                height: 0.4rem;
                width: 50%;
                text-align: center;
                line-height: 0.4rem;
            }

        }
    }

    .bottom {
        width: 90%;
        height: 5rem;
        margin: 0 5%;
    }

    .question {
        margin-top: 0.5rem;
        text-align: center;
    }

}
</style>